Optimal. Leaf size=26 \[ \frac {a \log (\sin (e+f x))}{f}-\frac {b \log (\cos (e+f x))}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {3625, 3475} \[ \frac {a \log (\sin (e+f x))}{f}-\frac {b \log (\cos (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3475
Rule 3625
Rubi steps
\begin {align*} \int \cot (e+f x) \left (a+b \tan ^2(e+f x)\right ) \, dx &=a \int \cot (e+f x) \, dx+b \int \tan (e+f x) \, dx\\ &=-\frac {b \log (\cos (e+f x))}{f}+\frac {a \log (\sin (e+f x))}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 34, normalized size = 1.31 \[ \frac {a (\log (\tan (e+f x))+\log (\cos (e+f x)))}{f}-\frac {b \log (\cos (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.46, size = 46, normalized size = 1.77 \[ \frac {a \log \left (\frac {\tan \left (f x + e\right )^{2}}{\tan \left (f x + e\right )^{2} + 1}\right ) - b \log \left (\frac {1}{\tan \left (f x + e\right )^{2} + 1}\right )}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.57, size = 27, normalized size = 1.04 \[ -\frac {b \ln \left (\cos \left (f x +e \right )\right )}{f}+\frac {a \ln \left (\sin \left (f x +e \right )\right )}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.63, size = 31, normalized size = 1.19 \[ -\frac {b \log \left (\sin \left (f x + e\right )^{2} - 1\right ) - a \log \left (\sin \left (f x + e\right )^{2}\right )}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 11.66, size = 36, normalized size = 1.38 \[ \frac {a\,\ln \left (\mathrm {tan}\left (e+f\,x\right )\right )}{f}-\frac {\ln \left ({\mathrm {tan}\left (e+f\,x\right )}^2+1\right )\,\left (\frac {a}{2}-\frac {b}{2}\right )}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.41, size = 58, normalized size = 2.23 \[ \begin {cases} - \frac {a \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac {a \log {\left (\tan {\left (e + f x \right )} \right )}}{f} + \frac {b \log {\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} & \text {for}\: f \neq 0 \\x \left (a + b \tan ^{2}{\relax (e )}\right ) \cot {\relax (e )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________